package com.gt.quality.system.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
/**
 * 角色和菜单关联表(SysRoleMenu)表实体类
 *
 * @author makejava
 * @since 2026-11-25 16:30:08
 */
@Data
@Accessors(chain = true)
@Schema(title = "SysRoleMenu", description = "EasyCode")
@TableName(value = "sys_role_menu", autoResultMap = true)
public class SysRoleMenu implements Serializable {

	@Serial
    private static final long serialVersionUID = 1L;

    /**
     * Description:  角色ID
     */
    @TableField(value = "role_id")
    @Schema(title = "role_id",description = "角色ID")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long roleId;

    /**
     * Description:  菜单ID
     */
    @TableField(value = "menu_id")
    @Schema(title = "menu_id",description = "菜单ID")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long menuId;

}


